package com.ztsoft.user.pojo.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class PageInfo {
    private long pageSize = 1L;

    private long currentPage = 10L;

    private int total;

    public PageInfo(long pageSize, long currentPage, int total) {
        if (pageSize != 0)
            this.pageSize = pageSize;
        if (currentPage != 0)
            this.currentPage = currentPage;
        this.total = total;
    }
}
